package com.ruoyi.repair.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.repair.mapper.PropertyInspectionRecordMapper;
import com.ruoyi.repair.domain.PropertyInspectionRecord;
import com.ruoyi.repair.service.IPropertyInspectionRecordService;

/**
 * 巡检记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
@Service
public class PropertyInspectionRecordServiceImpl implements IPropertyInspectionRecordService 
{
    @Autowired
    private PropertyInspectionRecordMapper propertyInspectionRecordMapper;

    /**
     * 查询巡检记录
     * 
     * @param recordId 巡检记录主键
     * @return 巡检记录
     */
    @Override
    public PropertyInspectionRecord selectPropertyInspectionRecordByRecordId(Long recordId)
    {
        return propertyInspectionRecordMapper.selectPropertyInspectionRecordByRecordId(recordId);
    }

    /**
     * 查询巡检记录列表
     * 
     * @param propertyInspectionRecord 巡检记录
     * @return 巡检记录
     */
    @Override
    public List<PropertyInspectionRecord> selectPropertyInspectionRecordList(PropertyInspectionRecord propertyInspectionRecord)
    {
        return propertyInspectionRecordMapper.selectPropertyInspectionRecordList(propertyInspectionRecord);
    }

    /**
     * 新增巡检记录
     * 
     * @param propertyInspectionRecord 巡检记录
     * @return 结果
     */
    @Override
    public int insertPropertyInspectionRecord(PropertyInspectionRecord propertyInspectionRecord)
    {
        return propertyInspectionRecordMapper.insertPropertyInspectionRecord(propertyInspectionRecord);
    }

    /**
     * 修改巡检记录
     * 
     * @param propertyInspectionRecord 巡检记录
     * @return 结果
     */
    @Override
    public int updatePropertyInspectionRecord(PropertyInspectionRecord propertyInspectionRecord)
    {
        return propertyInspectionRecordMapper.updatePropertyInspectionRecord(propertyInspectionRecord);
    }

    /**
     * 批量删除巡检记录
     * 
     * @param recordIds 需要删除的巡检记录主键
     * @return 结果
     */
    @Override
    public int deletePropertyInspectionRecordByRecordIds(Long[] recordIds)
    {
        return propertyInspectionRecordMapper.deletePropertyInspectionRecordByRecordIds(recordIds);
    }

    /**
     * 删除巡检记录信息
     * 
     * @param recordId 巡检记录主键
     * @return 结果
     */
    @Override
    public int deletePropertyInspectionRecordByRecordId(Long recordId)
    {
        return propertyInspectionRecordMapper.deletePropertyInspectionRecordByRecordId(recordId);
    }
}
